package com.jiazhong.basic.shuxin.design.代理模式.静态代理模式;

public class Assistant implements Treat {

    // 目标对象
    private Boss boss;

    public Assistant(Boss boss) {
        this.boss = boss;
    }

    @Override
    public void eat() {
        System.out.println("我是秘书，今天老板不在，我全权代表他了");
        boss.eat();
        System.out.println("回家吧");
    }
}
